package com.think.teaching.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.think.teaching.mapper.VrmlTroomMapper;
import com.think.teaching.model.TeacherInfo;
import com.think.teaching.model.VrmlTroom;
import com.think.teaching.service.VrmlTroomService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 实训室  服务实现类
 * </p>
 *
 * @author think
 * @since 2024-07-11
 */
@Service
public class VrmlTroomServiceImpl extends BaseServiceImpl<VrmlTroomMapper, VrmlTroom> implements VrmlTroomService {

    @Override
    public VrmlTroom AddVrmlTroom(VrmlTroom vrmlTroom) {
        if (this.save(vrmlTroom)) {
            return vrmlTroom;
        }
        return null;
    }

    @Override
    public IPage<VrmlTroom> RoomList(Integer count, Integer page, Integer type, Integer tag) {
        IPage<VrmlTroom> ipage = new Page<>(page, count);
        return this.page(ipage);
    }
}
